Skip to content

cpu/saml1x: fix adc resolution issue#11972

Merged
PeterKietzmann merged 1 commit intoRIOT-OS:masterfrom
dylad:pr/saml1x/fix_adc
Aug 7, 2019
Merged

cpu/saml1x: fix adc resolution issue#11972
PeterKietzmann merged 1 commit intoRIOT-OS:masterfrom
dylad:pr/saml1x/fix_adc

Conversation

@dylad
Copy link
Member

@dylad dylad commented Aug 6, 2019

Contribution description

This PR adds missing adc resolution enum for SAML1X family.
I cannot fully test this PR before submitting it because I have a very limited access to my hardware for the time being.

Testing procedure

Can be tested using tests/periph_adc, check if result is conform with input voltage applied and if value is between 0 and 1023 (if 10-bit resolution selected)

Issues/PRs references

Should fixes @PeterKietzmann's comment from #11892

@dylad dylad added Type: enhancement The issue suggests enhanceable parts / The PR enhances parts of the codebase / documentation Area: cpu Area: CPU/MCU ports labels Aug 6, 2019
@dylad dylad added this to the Release 2019.10 milestone Aug 6, 2019
Copy link
Member

@PeterKietzmann PeterKietzmann left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ACK. Tested with tests/periph_adc setting ADC_RES_8BIT, ADC_RES_10BIT and ADC_RES_12BIT. Everything works smooth and ranges look as expected (I only applied 0V and 3.3V)

@PeterKietzmann PeterKietzmann added the CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR label Aug 7, 2019
Copy link
Member

@PeterKietzmann PeterKietzmann left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ACK and go. Thanks @dylad for addressing this issue!

@PeterKietzmann PeterKietzmann merged commit 1e7a468 into RIOT-OS:master Aug 7, 2019
@dylad dylad deleted the pr/saml1x/fix_adc branch January 22, 2021 13:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Area: cpu Area: CPU/MCU ports CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR Type: enhancement The issue suggests enhanceable parts / The PR enhances parts of the codebase / documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants